<template>
  <div>
    <div class="content">
      提交成功! 
      <el-button size="middle" type="text" @click="goToReport">
        点击查看报告
      </el-button>
    </div>
    
    <div style="text-align: center; padding-bottom: 50px; font-size: 14px">
      XXXX <span style="color: #666666"> 提供技术支持</span>
    </div>
  </div>
</template>

<script>
import {exportSysCustomOrgInfoExcel,saveOrUpdateSysCustomOrgInfo,saveOrUpdateSysCustomOrgInfoList,saveSysCustomOrgInfo,saveSysCustomOrgInfoList,deleteSysCustomOrgInfo,querySysCustomOrgInfo,querySysCustomOrgInfoListPage,updateSysCustomOrgInfo,deleteSysCustomOrgInfoList} from '@/api/system/sysCustomOrgInfoApi';
import { mapGetters } from 'vuex';
import { reqCommonMsg } from '@/util/reqCommonMsg';
import { regionData, CodeToText } from 'element-china-area-data';
import { getToken } from '@/util/auth';
import { Base64 } from 'js-base64';
export default {
  data() {
    return {
      tenantId: '',
      userId: '',
      // 请求参数区
      page: {
        pageSize: 10,
        currentPage: 1,
        total: 0,
      },
      reqParams: {
        singleBody: {},
        listBody: [{}],
        sqlCondition: [],
        orderRule: [],
        currentPage: 1,
        pageSize: 10,
      },
      commonData: null,
      conditions: [],
      orderRules: [],
      singleBody: {},
    };
  },
  computed: {
    ...mapGetters([
      'website',
      'orgTree',
      'genOrgTree',
      'userInfo',
      'permission',
      'projectInfo',
    ]),
  },
  methods: {
    goToReport(){
      window.location.href='/biz/sixteen/bizSixteenUserAnalysis/resultReport?tenantId='+this.tenantId+'&userId='+this.userId;
    }
  },
  created() {
    if (this.$route.query) {
      this.tenantId  = this.$route.query.tenantId;
      this.userId = this.$route.query.userId;
    } else {
      alert('访问无效');
    }
  },
  mounted() {
  }
};
</script>
<style  lang="scss">
html,
body,
#app {
  height: 100%;
  overflow: auto;
  margin: 0;
  padding: 0;
  background: #edf2f7 !important;
}
.content {
  margin: 0 auto;
  text-align: center;
  width: 600px;
  margin-bottom: 50px;
  margin-top: 100px;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 10px;
  color: forestgreen;
}

</style>
